package com.hckj.jianzhijia.controllers;

import android.content.Context;
import android.graphics.drawable.Drawable;

import com.hckj.jianzhijia.R;
import com.hckj.jianzhijia.utils.Data;
import com.hckj.jianzhijia.utils.StateConstant;

/**
 * Created by 赵奇隆 on 2015-11-01.
 */
public class JobDetailsController {


    private Context context;

    public JobDetailsController(Context context){
        this.context = context;
    }




    public String getJobStateString(int jobState){

        String jobStateString = null;
        switch (jobState){
            case StateConstant.JOB_STATE_PUBLISHING:
                jobStateString = "正在审核";
                break;
            case StateConstant.JOB_STATE_FAIL:
                jobStateString = "审核失败";
                break;
            case StateConstant.JOB_STATE_PUBLISHED:
                jobStateString = "已经发表";
                break;
            case StateConstant.JOB_STATE_QUIT:
                jobStateString = "已删除";
                break;
            case StateConstant.JOB_STATE_PUBLISHING_DELETE:
                jobStateString = "已删除";
                break;
            case StateConstant.JOB_STATE_FAIL_DELETE:
                jobStateString = "已删除";
                break;
            case StateConstant.JOB_STATE_FAIL_QUIT_DELETE:
                jobStateString = "已删除";
                break;

        }
        return jobStateString;
    }

    public String getStringByJobType(int jobType){
        return Data.JobTypeData[jobType];
    }

    public String getProvince(int provinceId){
        return Data.provinceData[provinceId];
    }

    public String getCity(int cityId){
        return Data.cityData[cityId];
    }

    public String getRegion(int regionId){
        return Data.regionData[regionId];
    }

    public String getPayType(int payType){
        return Data.payTypeData[payType -1];
    }

    public String getGenderRequest(int genderRequest){
        return Data.genderTypeData[genderRequest - 1];
    }



}
